package cn.lili.modules.promotion.service;

import cn.lili.modules.promotion.entity.BlindboxRelVO;
import cn.lili.modules.promotion.entity.dos.BlindboxRel;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * 盲盒规则商品关联 业务层
 *
 * @author xiangqian
 */
public interface BlindboxRelService extends IService<BlindboxRel> {

    /**
     * 根据商品ID查询盲盒规则
     *
     * @param goodsId 商品ID
     * @return 规则ID
     */
    String getRuleIdByGoodsId(String goodsId);

    /**
     * 新增盲盒规则商品关联
     *
     * @param blindboxRelVO 盲盒规则商品关联
     */
    Boolean addBlindboxRel(BlindboxRelVO blindboxRelVO);
}